package com.perceptivesoftware.licensing.client.common.util;

import com.google.gwt.user.client.rpc.IsSerializable;

public enum ReportNotificationAction implements IsSerializable
{
	COMPLETE(1L, "Complete");
	private Long val;
	private String desc;

	private ReportNotificationAction(final Long val, final String desc)
	{
		this.val = val;
		this.desc = desc;
	}

	public Long getVal()
	{
		return val;
	}

	public String getDesc()
	{
		return desc;
	}

	public static ReportNotificationAction getEnumForType(final Long val)
	{
		for (final ReportNotificationAction theEnum : ReportNotificationAction.values())
		{
			if (theEnum.getVal().equals(val))
			{
				return theEnum;
			}
		}
		return null;
	}
}